﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Completed.aspx.cs" Inherits="Completed" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>    

    <style type="text/css">
        
        #mainDiv
        {
            width: 500px;
            height:auto;
            
            text-align:center;            
            vertical-align:middle;
            
            margin-left:auto;
            margin-right:auto;
            margin-top:10%;
                        
            border: 2px groove #699EDB;            
        }
        
    </style>

</head>
<body>
    <form id="form1" runat="server">

         <div id = "mainDiv">
            Sua prova foi submetida para análise.
                <br />
            Você receberá uma notificação por e-mail assim que sua nota estiver disponível.
            <%
                if (this.showSolution == true)
                {
                    this.Response.Write("<br />");                    
                    this.Response.Write("<br />");
                    this.Response.Write("<label style='color:green'>Acertos: " + this.rightQuestions + "</label>");
                    this.Response.Write("<br />");
                    this.Response.Write("<label style='color:red'>Erros: " + this.miss + "</label>");
                    this.Response.Write("<br />");
                    this.Response.Write("<br />");
                    this.Response.Write("<label style='color:black'>Suas respostas: " + this.userSolution + "</label>");
                    this.Response.Write("<br />");
                    this.Response.Write("<label style='color:black'>Gabarito: " + this.testSolution + "</label>");
                }          
                
                if (this.showPontuation == true)
                {
                    this.Response.Write("<br />");
                    this.Response.Write("<label style='color:blue'>Nota Final: " + this.pontuation + "</label>");
                    this.Response.Write("<br />");
                    this.Response.Write("<label style='color:purple'>Aproveitamento: " + this.CalculatePorcentage(this.rightQuestions, this.rightQuestions + this.miss) + "% </label>");                    
                }                  
            %>
        </div>

    </form>
</body>
</html>
